<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<include file='Common:head'/>
<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li>首页</li>
    <li>角色列表</li>
  </ul>
</div>
<div class="rightinfo">
  <div class="tools">
    <ul class="toolbar">
      <a href="{:U('Rbac/addRole')}">
      <li><span><img src="__PUBLIC__/Admin/images/t01.png" /></span>添加</li>
      </a>
    </ul>
  </div>
  <table class="tablelist">
    <thead>
      <tr>
        <th><input type="checkbox" id="selall"/></th>
        <th>ID</th>
        <th>角色名称</th>
        <th>角色状态</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <foreach name='role' item='v'>
        <tr>
          <td><input type="checkbox" class="selall" name="id[]" value="{$v['id']}"/></td>
          <td>{$v['id']}</td>
          <td>{$v['name']}</td>
          <td><?php
        	switch($v['status']){
            	case 1:
                	echo "<a>开启</a>";
                    break;
                case 0:
                	echo "<a style='color:#F00;font-weight:bold;'>关闭</a>";
            }
        ?></td>
          <td><a href="{:U('Rbac/access',array('rid'=>$v['id']))}" class="tablelink">权限</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="{:U('Rbac/editRole',array('id'=>$v['id']))}" class="tablelink">编辑</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a href="{:U('Rbac/del',array('id'=>$v['id']))}" class="tablelink" onclick="return confirm('确实要删除吗？')">删除</a></td>
        </tr>
      </foreach>
    </tbody>
  </table>
  <div class="meneame">
    <div class="current"></div>
    {$page} </div>
</div>
</div>
</body>
</html>
